#include "persona.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
Persona::Persona()
{
}
void Persona::setCedula(string cedula)
{
      this->cedula =cedula;
}

void Persona::setTarjeta(Tarjeta tarjeta){

    this->tarjeta = tarjeta;
}

string Persona::getCedula(){
    return  this->cedula;
}

Tarjeta Persona::getTarjeta(){
    return this->tarjeta;
}

inline double closed_interval_rand(double x0, double x1)
{
return x0 + (x1 - x0) * rand() / ((double) RAND_MAX);
}
int Persona:: IndicarPreferencia(){
        return  (closed_interval_rand(0,6));

}
int Persona::IndicarCliente_NoCliente(){
        return  (closed_interval_rand(0,1));
}
 string Persona::IngresarClave(){
        return this->getTarjeta().getContrasena();
}
 int Persona::IndicarOperacion(){
        return  (7*closed_interval_rand(0,1));
}

